//
//  Item.cpp
//  party-family
//
//  Created by Justin Kurtz on 6/18/11.
//

#include "Item.h"

Item::Item(int ID)
{
   this->ID = ID;
}

Item::~Item()
{
   // free the image?
}

// this may need improving in the future
bool Item::operator==(const Item &other)
{
   bool retVal = false;
   if(ID == other.ID) {
      return true;
   }
   
   return retVal;
}

int Item::GetID()
{
   return ID;
}

void Item::Use()
{
   // this method should be overridden by inherited classes.
   // this allows us to call Use() on any Item, and the inherited 
   // item will be able to do anything it wants.
}

std::string Item::GetDescription()
{
   return desc;
}

void Item::SetDescription(std::string desc)
{
   this->desc = desc;
}

void Item::SetImage(std::string url)
{
   // TODO: implement
}

SDL_Surface * Item::GetImage()
{
   return image;
}

void Item::HasBeenDropped()
{
   // this method might not be applicable to most Items
   // but we should include it in case an Item has some kind of magical
   // powers when it's dropped.
}

void Item::HasBeenPickedUp()
{
   // this method might not be applicable to most Items
   // but we should include it in case an Item has some kind of magical
   // powers when it's picked up.
}
